<template>
	
      <div class="pop">  
	       <div class="head-line between"> 
				<span class="head">选择时间</span>
				<span @click="$emit('submit')">确定</span>
		   </div>  
		   <van-row>
		     <van-col span="8"  style="text-align: center">年</van-col>
		     <van-col span="8"  style="text-align: center"> 月</van-col>
		     <van-col span="8"  style="text-align: center">  日 </van-col>
		   </van-row>
		   <van-datetime-picker
		     v-model="currentDate"
			 @change="change"
		      type="date"
			  :show-toolbar="false" 
			  :max-date="maxdate"
		   /> 
	  </div>   
	  
</template>
<style scoped> 
 .pop{padding:10px 15px 20px 15px;}
 .head{ font-size:20px;font-weight:600 } 
 
</style>
<script>


export default { 
  props: {
    show: Boolean
  },
  data() {
    return {
      list:"不限,江岸区,江汉区,硚口区,汉阳区,武昌区,青山区,洪山区,东西湖区,汉南区,蔡甸区".split(","),
	  cur:"",
	  maxdate:new Date()
    }
  },
  methods: {
  	 change(val){ 
  		this.cur = new Date(val); 
		console.log(val)
  	 }, 
  },
}
</script>
